package com.ml.mall.service.payinfo;

import com.ml.mall.bean.req.ipay.Ipay88CallBackDto;
import com.ml.mall.bean.req.payment.PaymentRecordQueryAllDto;
import com.ml.mall.entity.payinfo.SysPaymentRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface SysPaymentRecordService extends IService<SysPaymentRecord> {

    /**
     * 根据回调参数保存支付记录
     * @param dto
     * @return
     */
    boolean saveByCallBackDto(Ipay88CallBackDto dto);

    /**
     * 支付记录查询
     * @param dto
     * @return
     */
    List<SysPaymentRecord> queryAll(PaymentRecordQueryAllDto dto);
}
